package com.serialization.demo3;

class Square extends Shape {

	/**
	 *
	 */
	private static final long serialVersionUID = 1345694736941479718L;
	private static int color;

	public Square(int xVal, int yVal, int dim) {
		super(xVal, yVal, dim);
		color = RED;
	}

	@Override
	public void setColor(int newColor) {
		color = newColor;
	}

	@Override
	public int getColor() {
		return color;
	}

}
